package com.mdb.open.common.enums.trade.type;

import com.mdb.bc.api.enums.ApiEnum;

/**
 * @description:
 * @author: you.yichao
 * @create: 2019-07-13 11:18
 **/
public enum ChargeBearerTypeEnum implements ApiEnum<String> {
    RECEIVER_CHARGE("收款人承担") {
        @Override
        public ChargeBearerPyTypeEnum getPyTypeEnum() {
            return ChargeBearerPyTypeEnum.OUR;
        }
    },
    REMITTANCE_CHARGE("汇款人承担") {
        @Override
        public ChargeBearerPyTypeEnum getPyTypeEnum() {
            return ChargeBearerPyTypeEnum.BEN;
        }
    },
    SHA_CHARGE("双方共同承担") {
        @Override
        public ChargeBearerPyTypeEnum getPyTypeEnum() {
            return ChargeBearerPyTypeEnum.SHA;
        }
    },

    ;


    ChargeBearerTypeEnum(String text) {
        this.text = text;
    }

    private String text;

    private ChargeBearerPyTypeEnum pyTypeEnum;

    public ChargeBearerPyTypeEnum getPyTypeEnum() {
        return pyTypeEnum;
    }

    @Override
    public String getValue() {
        return name();
    }

    @Override
    public String getText() {
        return this.text;
    }
}
